import argparse

import objectdetection
from logger import log
from settings import settings

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='manual to this script')
    parser.add_argument("--code", type=str, default="lipeng_test")
    parser.add_argument("--host", type=str, default="platform.wechain360.com")
    args = parser.parse_args()
    log.info(f"code:{args.code},host:{args.host}")
    # 初始化配置
    settings.init(args.code, args.host)
    # 开启检物体检测服务
    objectdetection.main()
